Who is a Python user?
Who is a R user?
Who uses both?
#python #rstats #rpy2 #reticulate @projectjupyter @rstudio
@datawookie
Language rankings (Redmonk, Q1 2018).
Language ratings over time (Redmonk, Q1 2018).
is…
but
is…
but
How can we
leverage
the
best
features of
both
languages?
What about blending them together?
Don’t think twice about mixing in a bit of SQL.
# R
#
dbGetQuery(db, "SELECT * FROM customer;")# Python
#
db.execute("SELECT * FROM employee;")Here are some options:
pip.pip install rpy2docker run --rm -p 8888:8888 rpy2/jupyter# - From CRAN
install.packages("reticulate")
# - From GitHub
devtools::install_github("rstudio/reticulate")%R and %%R-i and -o for block magicpandas2ri conversionsimport() modulesrepl_python()py$ and r. special objectsClearlyboth
languages are
important.
A Data Scientist should be at least
conversant
in
both
of them.
Does it need to be an exclusive relationship?
We can
divide
our allegiance between
both
languages!
You will have the
best
of
both
worlds.
\(+\) FTW